<div class="ngdialog-content">
    <h4>Post Question</h4>
    {{ngDialogData.question}}
    <div class="ngdialog-message">
        <div class="list-group-item" ng-repeat="answer in ngDialogData.answers">            
            <h4 class="list-group-item-heading">Answer {{$index + 1}}</h4>                            
            <div class="list-group-item-text" ng-bind-html="answer"></div>                            
        </div>
    </div>
    <div class="form-group">
            <label for="whoCanSee">Who can see?</label>
            <select id="whoCanSee" ng-model="ngDialogData.visibility">
                <option value="0" selected>Every one</option>      
                <option value="1">Only my friends</option>
            </select>
    </div>

    <div class="form-group">
        <label for="whoCanAnswer">Who can answer?</label>
        <select id="whoCanAnswer" ng-model="ngDialogData.whoCanAnswer">
            <option value="0" selected>Every one</option>      
            <option value="1">Only my friends</option>
            <option value="1">Email friends</option>
        </select>
    </div>

    <div class="form-group"><label for="daystoDecide">Days to decide?</label>
        <select id="daystoDecide" ng-model="ngDialogData.days">
            <option value="0" selected>Default</option>      
            <option value="1">1 Day</option>
            <option value="2">2 Days</option>
            <option value="3">3 Days</option>
            <option value="4">4 Days</option>
            <option value="5">5 Days</option>
            <option value="6">6 Days</option>
            <option value="7">1 Week</option>
            <option value="14">2 Weeks</option>
        </select> </div>

    <div class="form-group">
        <label for="showMyName">Show my Name?</label>
        <select id="showMyName" ng-model="ngDialogData.showName">
            <option value="0" selected>Yes</option>      
            <option value="1">No</option>
        </select>
    </div>

    <div class="form-group">
        <label for="showMultiGraph">Show multi-graph?</label>
        <select id="showMultiGraph" ng-model="ngDialogData.graphs">
            <option value="0" selected>Yes</option>      
            <option value="1">No</option>
        </select>
    </div>

    <div class="form-group">
        <label for="category">Choose Category?</label>
        <select id="category" ng-model="ngDialogData.categoryid" ng-options="category.results.id as category.results.name for category in menuList">
        </select>
    </div>

    <div class="ngdialog-buttons">
        <button type="button" class="ngdialog-button ngdialog-button-secondary" ng-click="closeThisDialog('Cancel')">Cancel</button>
        <button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="saveQuestion(ngDialogData)">Post Question</button>
    </div>
</div>